import request from '@/utils/rquest'

export const login = data => {
  return request.post('/user/registered', data)
}

export const register = data => {
  return request.post('/user/login', data)
}
export const getUserInfo = function () {
  return request.get('/user')
}
